package com.beyond.trace.dy.service.impl;

import com.beyond.trace.dy.domain.StoreDecrease;
import com.beyond.trace.dy.domain.StoreIncrease;
import com.beyond.trace.dy.domain.StoreLoss;
import com.beyond.trace.dy.domain.StoreStore;
import com.beyond.trace.dy.mapper.TraceDyStatisticsMapper;
import com.beyond.trace.dy.service.ITraceDyStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 统计管理Service业务层处理
 * 
 * @author Mr.Yao
 * @date 2022-04-08
 */
@Service
public class TraceDyStatisticsServiceImpl implements ITraceDyStatisticsService
{

    @Autowired
    private TraceDyStatisticsMapper traceDyStatisticsMapper;

    /**
     * 入库统计
     * @return
     */
    @Override
    public List<StoreIncrease> selectStoreIncreaseList(StoreIncrease storeIncrease){
        return traceDyStatisticsMapper.selectStoreIncreaseList(storeIncrease);
    }
    /**
     * 出库统计
     * @return
     */
    @Override
    public List<StoreDecrease> selectStoreDecreaseList(StoreDecrease storeDecrease){
        return traceDyStatisticsMapper.selectStoreDecreaseList(storeDecrease);
    }
    /**
     * 库存统计
     * @return
     */
    @Override
    public List<StoreStore> selectStoreStoreList(StoreStore storeStore){
        return traceDyStatisticsMapper.selectStoreStoreList(storeStore);
    }
    /**
     * 库存折损统计
     * @return
     */
    @Override
    public List<StoreLoss> selectStoreLossList(String productId){
        return traceDyStatisticsMapper.selectStoreLossList(productId);
    }
}
